﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteAdmin/MasterPage.master" AutoEventWireup="true" CodeFile="StockInManager.aspx.cs" Inherits="StockInManager" %>
<%@ Register Src="StockIn_Purchase.ascx" TagName="StockIn_Purchase" TagPrefix="uc1" %>
<%@ Register Src="StockIn_Receive.ascx" TagName="StockIn_Receive" TagPrefix="uc1" %>
<%@ Register Src="StockIn_Borrow.ascx" TagName="StockIn_Borrow" TagPrefix="uc1" %>
<%@ Register Src="StockIn_Other.ascx" TagName="StockIn_Other" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="contentPlaceHolderID" Runat="Server">
<asp:Panel ID="pnlGrid" runat="server" CssClass="centerPanel" Width="95%">
<div class="searchDiv" >
           <table cellspacing="0" class="searchTable">
            <tr>
                <td>
                入库单编号：
                </td>
                <td>
                <asp:TextBox ID="S_StockInCode" runat="server" CssClass="smallInput" MaxLength="64" ></asp:TextBox>
                </td>
                <td>
                入库日期：
                </td>
                <td>
                <asp:TextBox ID="S_StockInDate" runat="server" onfocus="calendar.ShowCaltable(this, event);" CssClass="smallInput" MaxLength="64" ></asp:TextBox>
                </td>
                <td>
                入库类型：
                </td>
                <td>
                <div class="select"><div><ofcc:DropDownList ID="S_StockInType" runat="server"></ofcc:DropDownList></div></div>
                </td>
                <td>
                    &nbsp;&nbsp;<asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text=" 查询 "  CssClass="searchButton" />
                </td>
            </tr>
            </table>
     </div>
<div class="webPanelBorder" >
    <div class="webPanelCaption">入库管理&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:Red">已经入库数据不能被修改</span></div>
    <div class="webPanelContent">
        <ofcc:GridView ID="gridView" runat="server" AutoGenerateColumns="False" 
            OnRowDataBound="gridView_RowDataBound" 
            onsplitpageindexchange="gridView_SplitPageIndexChange">
            <Columns>
                <asp:TemplateField HeaderText="选择">
                    <ItemTemplate>
                        <input ID="StockInID" checked="checked" name="StockInID" type="radio" 
                            value='<%#DataBinder.Eval(Container.DataItem,"StockInID")%>' />
                        <asp:HiddenField ID = "HiddenField1" runat="server" Value='<%#Eval("StockInID") %>' />    
                    </ItemTemplate>
                    <HeaderStyle Width="40px" />
                </asp:TemplateField>
                <asp:HyperLinkField DataTextField="StockInCode" HeaderText="入库单号" NavigateUrl="#"/>
                <asp:BoundField DataField="StockInDate" HeaderText="入库日期" />
                <asp:BoundField DataField="StockInTypeName" HeaderText="入库类型" />
                <asp:BoundField DataField="SupplierID" HeaderText="供应商" />
                <asp:BoundField DataField="UserName" HeaderText="经办人" />
                <asp:BoundField DataField="OrgName" HeaderText="经办部门" />
                <asp:BoundField DataField="CreateTime" HeaderText="录入日期" />
                <asp:BoundField DataField="Description" HeaderText="描述" />
                <asp:BoundField DataField="Status" HeaderText="当前状态" /> 
            </Columns>
        </ofcc:GridView>
     </div>
</div>
<div class="webPanelButtonArea">
    <ofcc:LinkButton ID="btnOrderStockIn" runat="server" OnClick="btnOrderStockIn_Click" CssClass="linkButton">采购入库</ofcc:LinkButton>
    <ofcc:LinkButton ID="btnBackStockIn" runat="server" OnClick="btnBackStockIn_Click" CssClass="linkButton">领料入库</ofcc:LinkButton>
    <ofcc:LinkButton ID="btnBorrowStockIn" runat="server" OnClick="btnBorrowStockIn_Click" CssClass="linkButton">借还入库</ofcc:LinkButton>
    <ofcc:LinkButton ID="btnAdd" runat="server" OnClick="btnAdd_Click" CssClass="linkButton" >其他入库</ofcc:LinkButton>
    <%--<ofcc:LinkButton ID="btnEdit" runat="server" OnClick="btnEdit_Click" CssClass="linkButton" >修改入库单</ofcc:LinkButton>--%>
    <ofcc:LinkButton ID="btnRemove" runat="server"  ConfirmMessage="确定要删除吗?" OnClick="btnRemove_Click" CssClass="linkButton" >删除入库单</ofcc:LinkButton>
    <ofcc:LinkButton ID="btnView" runat="server" OnClick="btnView_Click" CssClass="linkButton" >查看入库单</ofcc:LinkButton>
</div>
</asp:Panel>


<asp:Panel ID="pnlEdit" runat="server" Width="95%" Visible="false" CssClass="centerPanel"> 
    <uc1:StockIn_Purchase ID="StockIn_Purchase" runat="server" Visible="false" />
    <uc1:StockIn_Receive ID="StockIn_Receive" runat="server" Visible="false"/>
    <uc1:StockIn_Borrow ID="StockIn_Borrow" runat="server" Visible="false"/>
    <uc1:StockIn_Other ID="StockIn_Other" runat="server" Visible="false"/> 
</asp:Panel> 
 
</asp:Content>

